package com.framework.dao;

import java.util.List;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

import com.framework.model.User;

@Component("userDao")
public interface UserDao{

	@Cacheable(value = "daoCache", key = "'queryUserByName' + #name")
	public User queryUserByName(String name);

	@Cacheable(value = "daoCache", key = "'queryUser' + #name")
	public List<User> queryUser(String name);
}
